<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="../general/header.jsp" %>
		<div id="header">FREE MARKET HOME PAGE</div>
		<%@ include file="../general/menu.jsp" %>		
		<c:if test="${!empty name}">
			Welcome <c:out value="${name}" />!!!!
		</c:if>
		<br><br><br>
		<table class="listas">
			<tr>
				<td colspan="4"><h2>Max Buyer</h2></td>
			</tr>
			<tr style="font-weight:bold;"> 
				<td> User </td>
				<td> Amount </td>
				<td> Month </td>
				<td> Year </td>
			</tr>
			<c:forEach var="buy" items="${buy}">
				<tr>
					<td> <c:out value="${buy.name}" /> </td> 
					<td> <c:out value="${buy.count}" /> </td> 
					<td> <c:out value="${buy.month}" /> </td> 
					<td> <c:out value="${buy.year}" /> </td>
				</tr>
			</c:forEach>
		</table>
		<br>
		<table class="listas">
			<tr>
				<td colspan="4"><h2>Max Seller</h2></td>
			</tr>
			<tr style="font-weight:bold;"> 
				<td> User </td>
				<td> Amount </td>
				<td> Month </td>
				<td> Year </td>
			</tr>
			<c:forEach var="sell" items="${sell}">
				<tr>
					<td> <c:out value="${sell.name}" /> </td> 
					<td> <c:out value="${sell.count}" /> </td> 
					<td> <c:out value="${sell.month}" /> </td> 
					<td> <c:out value="${sell.year}" /> </td>
				</tr>
			</c:forEach>
		</table>
<div id="bottom">
	<span class="inline spaced">
		<a class="color" href="../general/index">Go back to index</a>
	</span>
</div>						
<%@ include file="../general/footer.jsp" %>